package com.objectproject.main.dao.iface.hierarchy;

import java.util.ArrayList;

import com.objectproject.main.model.MyGroup;
import com.objectproject.main.model.MyUser;

public interface MembershipDAO {
	
	public abstract ArrayList<Long> selectGroupIds(long userId);
	public abstract ArrayList<MyGroup> selectGroups(long userId);
	
	//해당 직속 맴버만 구한다. 롱인 이유는 메모리 제한 최소화하기위함
	public abstract ArrayList<Long> selectMemberIds(long groupId);
	
	public void insertMembership(long userId, long groupId);
	public void deleteMembership(long userId, long groupId);

}
